package com.bestescortbedsystem.controller;

import com.bestescortbedsystem.service.Sf;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * ClassName: YanZheng
 * Package: com.bestescortbedsystem.controller
 *
 * @author: guanzepeng
 * @Date: 2021/3/8 19:26 星期一
 * @Description:
 */
@Controller
public class YanZheng {

	@Resource
	private Sf sf;

	@RequestMapping("/setkey")
	public void setKey(String phone) {
		sf.setKey(phone);
	}

	@GetMapping("/getkey")
	public Boolean getKey(String phone, String random) {
		Boolean key = sf.getKey(phone, random);
		return key;
	}

}
